package com.liruo.test.spring.annotationdep.bean.importbean;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

import java.util.function.Predicate;

/**
 * @Author:liruo
 * @Date:2022-11-20-20:28:22
 * @Desc
 */
public class ThirdPartyImportSelector implements ImportSelector {
    /**
     *
     * @param importingClassMetadata currentSourceClass.getMetadata()
     *        introspectedClass----导入ThirdPartyImportSelector的注解所在类
     * @return
     */
    @Override
    public String[] selectImports(AnnotationMetadata importingClassMetadata) {
        return new String[]{
                "com.liruo.test.spring.component.common.importcpt.CommonComponentByImportSelector",
                "com.liruo.test.spring.component.third.importcpt.ThirdComponentByImportSelector"
        };
    }
}
